<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>平台仲裁申请</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        :root {
            --primary: #2196F3;
            --primary-dark: #1976D2;
            --primary-light: #E3F2FD;
            --secondary: #FF9800;
            --success: #4CAF50;
            --warning: #FFC107;
            --error: #F44336;
            --dark: #263238;
            --medium: #546E7A;
            --light: #90A4AE;
            --background: #F5F9FC;
            --card-bg: #FFFFFF;
            --border: #E0E0E0;
        }
        
        body {
            background-color: var(--background);
            color: var(--dark);
            max-width: 750px;
            margin: 0 auto;
            padding-bottom: 80px;
        }
        
        /* 顶部导航 */
        .header {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            padding: 15px 20px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .back-btn {
            background: rgba(255, 255, 255, 0.2);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: white;
        }
        
        .page-title {
            font-size: 20px;
            font-weight: bold;
            flex: 1;
            text-align: center;
        }
        
        /* 仲裁流程 */
        .arbitration-process {
            padding: 20px 15px;
        }
        
        .section-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
            position: relative;
            padding-left: 15px;
        }
        
        .section-title::before {
            content: "";
            position: absolute;
            left: 0;
            top: 5px;
            height: 20px;
            width: 5px;
            background: var(--primary);
            border-radius: 3px;
        }
        
        .process-steps {
            display: flex;
            justify-content: space-between;
            position: relative;
            margin-bottom: 40px;
        }
        
        .process-steps::before {
            content: "";
            position: absolute;
            top: 20px;
            left: 10%;
            width: 80%;
            height: 2px;
            background: var(--primary-light);
            z-index: 0;
        }
        
        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 1;
        }
        
        .step-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
            color: var(--primary);
            font-size: 18px;
        }
        
        .step.active .step-icon {
            background: var(--primary);
            color: white;
        }
        
        .step-text {
            font-size: 12px;
            text-align: center;
            color: var(--medium);
        }
        
        .step.active .step-text {
            color: var(--primary);
            font-weight: 500;
        }
        
        /* 任务信息卡片 */
        .task-info-card {
            background: var(--card-bg);
            margin: 0 15px 20px;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            border-left: 4px solid var(--primary);
        }
        
        .task-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
            color: var(--dark);
        }
        
        .task-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
        }
        
        .meta-item {
            display: flex;
            flex-direction: column;
        }
        
        .meta-label {
            font-size: 12px;
            color: var(--medium);
            margin-bottom: 5px;
        }
        
        .meta-value {
            font-size: 14px;
            font-weight: 500;
        }
        
        .amount {
            color: var(--error);
            font-weight: bold;
        }
        
        /* 仲裁表单 */
        .arbitration-form {
            background: var(--card-bg);
            margin: 20px 15px;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }
        
        .form-group {
            margin-bottom: 25px;
        }
        
        .form-label {
            display: block;
            font-weight: 500;
            margin-bottom: 10px;
            color: var(--dark);
        }
        
        .form-label span {
            color: var(--error);
        }
        
        .form-control {
            width: 100%;
            padding: 15px;
            border: 1px solid var(--border);
            border-radius: 10px;
            font-size: 16px;
            background: #f9f9f9;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
        }
        
        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }
        
        /* 证据上传 */
        .evidence-section {
            margin-top: 30px;
        }
        
        .evidence-title {
            font-weight: 500;
            margin-bottom: 15px;
        }
        
        .evidence-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .evidence-item {
            height: 100px;
            border-radius: 10px;
            background: #f5f5f5;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            color: var(--medium);
            position: relative;
            overflow: hidden;
        }
        
        .evidence-item .preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .evidence-item .remove-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }
        
        .evidence-item.add-btn {
            background: var(--primary-light);
            color: var(--primary);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .evidence-item.add-btn:hover {
            background: var(--primary);
            color: white;
        }
        
        .evidence-types {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
        }
        
        .evidence-type {
            background: var(--primary-light);
            color: var(--primary);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 14px;
        }
        
        /* 仲裁规则 */
        .rules-section {
            background: #FFF8E1;
            border-radius: 12px;
            padding: 20px;
            margin: 20px 15px;
            border-left: 4px solid var(--warning);
        }
        
        .rules-title {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            color: var(--dark);
        }
        
        .rules-title i {
            margin-right: 10px;
            color: var(--warning);
        }
        
        .rules-list {
            padding-left: 20px;
        }
        
        .rules-list li {
            margin-bottom: 10px;
            line-height: 1.6;
        }
        
        /* 提交按钮 */
        .submit-section {
            margin: 30px 15px;
            display: flex;
            justify-content: center;
        }
        
        .submit-btn {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 30px;
            padding: 16px 50px;
            font-size: 18px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
        }
        
        .submit-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 7px 20px rgba(33, 150, 243, 0.4);
        }
        
        /* 底部导航 */
        .footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            max-width: 750px;
            margin: 0 auto;
            background: var(--card-bg);
            display: flex;
            justify-content: space-around;
            padding: 12px 0;
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
            z-index: 100;
            border-radius: 25px 25px 0 0;
        }
        
        .footer-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 12px;
            color: var(--medium);
            text-decoration: none;
            transition: all 0.3s ease;
            padding: 5px 15px;
            border-radius: 20px;
        }
        
        .footer-btn i {
            font-size: 22px;
            margin-bottom: 5px;
            transition: all 0.3s ease;
        }
        
        .footer-btn span {
            font-weight: 500;
        }
        
        .footer-btn.active, .footer-btn:hover {
            color: var(--primary);
            background: var(--primary-light);
        }
        
        .footer-btn.active i, .footer-btn:hover i {
            color: var(--primary);
            transform: translateY(-3px);
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="header">
        <div class="top-bar">
            <a href="#" class="back-btn">
                <i class="fas fa-arrow-left"></i>
            </a>
            <div class="page-title">申请平台仲裁</div>
        </div>
    </div>
    
    <!-- 仲裁流程 -->
    <div class="arbitration-process">
        <h2 class="section-title">仲裁流程</h2>
        <div class="process-steps">
            <div class="step active">
                <div class="step-icon">
                    <i class="fas fa-edit"></i>
                </div>
                <div class="step-text">填写申请</div>
            </div>
            <div class="step">
                <div class="step-icon">
                    <i class="fas fa-search"></i>
                </div>
                <div class="step-text">证据审核</div>
            </div>
            <div class="step">
                <div class="step-icon">
                    <i class="fas fa-gavel"></i>
                </div>
                <div class="step-text">平台裁决</div>
            </div>
            <div class="step">
                <div class="step-icon">
                    <i class="fas fa-check-circle"></i>
                </div>
                <div class="step-text">完成处理</div>
            </div>
        </div>
    </div>
    
    <!-- 任务信息卡片 -->
    <div class="task-info-card">
        <h2 class="task-title">企业宣传海报设计</h2>
        <div class="task-meta">
            <div class="meta-item">
                <span class="meta-label">任务编号</span>
                <span class="meta-value">TSK20250712001</span>
            </div>
            <div class="meta-item">
                <span class="meta-label">争议金额</span>
                <span class="meta-value amount">¥600.00</span>
            </div>
        </div>
    </div>
    
    <!-- 仲裁表单 -->
    <div class="arbitration-form">
        <div class="form-group">
            <label class="form-label">仲裁类型 <span>*</span></label>
            <select class="form-control">
                <option value="">请选择仲裁类型</option>
                <option value="payment">支付纠纷</option>
                <option value="quality">任务质量争议</option>
                <option value="scope">任务范围争议</option>
                <option value="deadline">交付时间争议</option>
                <option value="other">其他争议</option>
            </select>
        </div>
        
        <div class="form-group">
            <label class="form-label">详细说明 <span>*</span></label>
            <textarea class="form-control" placeholder="请详细描述争议情况，包括时间、具体问题、您的立场以及期望的解决方案..."></textarea>
        </div>
        
        <div class="form-group">
            <label class="form-label">您的诉求 <span>*</span></label>
            <select class="form-control">
                <option value="">请选择您的诉求</option>
                <option value="full_payment">要求全额支付</option>
                <option value="partial_payment">要求部分支付</option>
                <option value="cancel_task">要求取消任务</option>
                <option value="modify_task">要求修改任务要求</option>
                <option value="other">其他诉求</option>
            </select>
        </div>
        
        <div class="evidence-section">
            <label class="form-label evidence-title">上传证据 <span>*</span></label>
            <p style="font-size: 14px; color: var(--medium); margin-bottom: 15px;">
                请上传相关证据（最多9张），如聊天记录、合同文件、任务成果截图等
            </p>
            
            <div class="evidence-grid">
                <div class="evidence-item add-btn">
                    <i class="fas fa-plus"></i>
                    <div style="font-size: 12px; margin-top: 5px;">添加证据</div>
                </div>
            </div>
            
            <div class="evidence-types">
                <div class="evidence-type">聊天记录</div>
                <div class="evidence-type">任务要求</div>
                <div class="evidence-type">交付成果</div>
                <div class="evidence-type">付款凭证</div>
                <div class="evidence-type">其他证据</div>
            </div>
        </div>
    </div>
    
    <!-- 仲裁规则 -->
    <div class="rules-section">
        <div class="rules-title">
            <i class="fas fa-exclamation-circle"></i>
            <h3>平台仲裁规则说明</h3>
        </div>
        <ul class="rules-list">
            <li>平台将在收到完整仲裁申请后的 <strong>3个工作日</strong> 内做出裁决</li>
            <li>仲裁期间争议金额将被冻结，裁决后按结果分配</li>
            <li>请确保提供真实有效的证据材料，虚假陈述将影响您的信用评级</li>
            <li>平台裁决为最终决定，双方必须遵守</li>
            <li>多次提出无理仲裁的用户将受到平台处罚</li>
        </ul>
    </div>
    
    <!-- 提交按钮 -->
    <div class="submit-section">
        <button class="submit-btn">
            <i class="fas fa-paper-plane"></i> 提交仲裁申请
        </button>
    </div>
    
    <!-- 底部导航 -->
    <div class="footer">
        <a href="#" class="footer-btn">
            <i class="fas fa-home"></i>
            <span>首页</span>
        </a>
        <a href="#" class="footer-btn">
            <i class="fas fa-tasks"></i>
            <span>任务</span>
        </a>
        <a href="#" class="footer-btn">
            <i class="fas fa-file-alt"></i>
            <span>工单</span>
        </a>
        <a href="#" class="footer-btn active">
            <i class="fas fa-gavel"></i>
            <span>仲裁</span>
        </a>
        <a href="#" class="footer-btn">
            <i class="fas fa-user"></i>
            <span>我的</span>
        </a>
    </div>

    <script>
        // 模拟证据上传功能
        document.querySelector('.evidence-item.add-btn').addEventListener('click', function() {
            const evidenceGrid = document.querySelector('.evidence-grid');
            const existingItems = evidenceGrid.querySelectorAll('.evidence-item:not(.add-btn)');
            
            if(existingItems.length >= 9) {
                alert('最多只能上传9个证据');
                return;
            }
            
            const newItem = document.createElement('div');
            newItem.className = 'evidence-item';
            newItem.innerHTML = `
                <img class="preview" src="https://via.placeholder.com/100x100/e0e0e0/999999?text=证据${existingItems.length + 1}" alt="证据">
                <div class="remove-btn">
                    <i class="fas fa-times"></i>
                </div>
            `;
            
            // 在添加按钮前插入新证据
            evidenceGrid.insertBefore(newItem, this);
            
            // 添加删除功能
            newItem.querySelector('.remove-btn').addEventListener('click', function(e) {
                e.stopPropagation();
                newItem.remove();
            });
            
            // 点击查看证据
            newItem.addEventListener('click', function() {
                alert('查看证据详情');
            });
        });
        
        // 表单提交
        document.querySelector('.submit-btn').addEventListener('click', function() {
            const evidenceItems = document.querySelectorAll('.evidence-item:not(.add-btn)');
            
            if(evidenceItems.length === 0) {
                alert('请至少上传一个证据');
                return;
            }
            
            if(confirm('确认提交仲裁申请？提交后无法修改，平台将在3个工作日内处理。')) {
                this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> 提交中...';
                this.disabled = true;
                
                // 模拟提交过程
                setTimeout(() => {
                    alert('仲裁申请已提交成功！平台将在3个工作日内处理。');
                    // 这里可以添加页面跳转
                }, 1500);
            }
        });
        
        // 表单验证
        document.querySelectorAll('.form-control').forEach(input => {
            input.addEventListener('change', function() {
                if(this.value.trim() === '') {
                    this.style.borderColor = var(--error);
                } else {
                    this.style.borderColor = '';
                }
            });
        });
    </script>
</body>
</html>